<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>响应式布局-媒体查询</title>
    <style>
        div{
            height: 500px;
            background: red;
        }
        @media screen and (max-width:1000px) and (min-width: 700px){
            div{
                background: green;
            }
        }
        @media screen and (max-width:700px){
            div{
                background: rgb(233, 8, 158);
            }
        }
        @media screen and (max-width:500px) {
            div{
                background: yellow;
            }
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>